Page({
  data:{
    numList: [1,2,3],
    expand: false
  },
  handlPulldownRefresh(){
    this.setData({
      numList: [1,2,3],
      expand: false
    })
  },
  getMore(){
    wx.showLoading({title:'数据加载中...'})

    setTimeout(() => {
      const lastEle = this.data.numList[this.data.numList.length-1]
      console.log('默认数据数组最后一个元素是：' + lastEle)
      let newArr = []
      for(let i=0;i<3;i++){
        const newEle = lastEle + i + 1
        console.log('最新的元素：' + newEle)
        newArr.push(newEle)
      }
      console.log('新增的数组：', newArr)
      this.setData({
        numList:[...this.data.numList,...newArr]
      })
      console.log(this.data.numList)

      wx.hideLoading()
    }, 1500);
  },
})